<!DOCTYPE html>
<html lang="en">

	<head>
		<!-- BEGIN META -->
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta name="description" content="">
		<meta name="author" content="Olive Enterprise">
		<!-- END META -->

		<!-- BEGIN STYLESHEET-->
		<?php $this->load->view('Public/headcss.html');?>
		<!-- END STYLESHEET-->
		<title>
			<?php echo $current['title']."-".$setting['title'];?>
		</title>

	</head>

	<body>
		<!-- BEGIN SECTION -->
		<section id="container">
			<!-- BEGIN HEADER -->
			<?php $this->load->view('Public/header.html');?>
			<!-- END HEADER -->
			<!-- BEGIN SIDEBAR -->
			<?php $this->load->view('Public/sidebar.html');?>
			<!-- END SIDEBAR -->
			<!-- BEGIN MAIN CONTENT -->
			<section id="main-content">
				<!-- BEGIN WRAPPER  -->
				<section class="wrapper">
					<!-- TOPMENU ROW  -->
					<?php $this->load->view('Public/topmenu.html');?>
					<!-- TOPMENU ROW  -->

					<!-- BEGIN ROW  -->
					<div class="row">
						<div class="col-lg-12">
							<section class="panel">
								<header class="panel-heading">
									<span class="label label-primary"><?php echo $current['title'];?></span>
									<span class="tools pull-right"></span>
								</header>
								<div class="panel-body">
									<div class="form">
										<form class="cmxform form-horizontal tasi-form" id="personalForm" method="post" action="<?php echo site_url('Pkadmin/Personal/updateprofile');?>" enctype="multipart/form-data">
											<div class="form-group">
												<label for="username" class="control-label col-lg-2">用户名</label>
												<div class="col-lg-3">
													<input class="form-control bg-white" id="username" name="username" type="text" disabled="disabled" value="<?php echo $admininfo['username'];?>">
												</div>
												<label class="control-label col-lg-2 color-red"><i class="fa fa-bolt"></i>&nbsp;无法修改</label>
											</div>
											
											<div class="form-group last">
												<label for="head_pic" class="control-label col-lg-2">头像</label>
												<div class="col-lg-3">
													<div class="fileupload fileupload-new" data-provides="fileupload">
														<div class="fileupload-new thumbnail">
															<img src="<?php if(!empty($admininfo['head_pic']['head_pic_140_thump'])){echo base_url($admininfo['head_pic']['head_pic_140_thump']);}else{echo base_url('Public/img/no_image.png');}?>">
														</div>
														<div class="fileupload-preview fileupload-exists thumbnail">
														</div>
														<div>
															<span class="btn btn-white btn-file">
																<span class="fileupload-new">
																	<i class="fa fa-paper-clip"></i> 选择头像
																</span>
															<span class="fileupload-exists">
																<i class="fa fa-undo"></i> 重置
															</span>
															<input type="file" class="default" name="head_pic">
															</span>
															<a href="#" class="btn btn-danger fileupload-exists" data-dismiss="fileupload">
																<i class="fa fa-trash"></i> 删除
															</a>
														</div>
													</div>
												</div>
											</div>
											
											<div class="form-group">
												<label for="sex" class="control-label col-lg-2">性别</label>
												<div class="col-lg-2">
													<select class="form-control m-bot15" name="sex">
														<option value="0" <?php if($admininfo['sex'] == 0) echo 'selected="selected"';?>>保密</option>
														<option value="1" <?php if($admininfo['sex'] == 1) echo 'selected="selected"';?>>男</option>
														<option value="2" <?php if($admininfo['sex'] == 2) echo 'selected="selected"';?>>女</option>
													</select>
												</div>
											</div>

											<div class="form-group">
												<label for="birthday" class="control-label col-lg-2">生日</label>
												<div class="col-lg-2">
													<div data-date-viewmode="years" data-date-format="yyyy-mm-dd" data-date="2016-01-01" class="input-append date dpYears w-90p">
														<input name="birthday" type="text" readonly="" value="<?php echo $admininfo['birthday'];?>" size="16" class="form-control">
														<span class="input-group-btn add-on">
															<button class="btn btn-info" type="button">
																<i class="fa fa-calendar"></i>
															</button>
														</span>
													</div>
												</div>
											</div>

											<div class="form-group">
												<label for="phone" class="control-label col-lg-2">电话</label>
												<div class="col-lg-3">
													<input class="form-control" id="mobile" name="mobile" type="text" value="<?php echo $admininfo['phone'];?>">
												</div>
											</div>
											
											<div class="form-group">
												<label for="qq" class="control-label col-lg-2">QQ</label>
												<div class="col-lg-3">
													<input class="form-control" id="qq" name="qq" type="text" value="<?php echo $admininfo['qq'];?>">
												</div>
											</div>

											<div class="form-group">
												<label for="email" class="control-label col-lg-2">E-mail</label>
												<div class="col-lg-3">
													<input class="form-control " id="email" name="email" type="email" value="<?php echo $admininfo['email'];?>">
												</div>
											</div>

											<div class="form-group">
												<div class="col-lg-offset-2 col-lg-10">
													<button class="btn btn-primary" type="submit">保存</button>
													<button class="btn btn-default" type="reset">重置</button>
												</div>
											</div>
										</form>
									</div>
								</div>
							</section>
						</div>
					</div>
					<!-- END ROW  -->
				</section>
				<!-- END WRAPPER  -->
			</section>
			<!-- END MAIN CONTENT -->
			<!-- BEGIN FOOTER -->
			<?php $this->load->view('Public/footer.html');?>
			<!-- END FOOTER -->
		</section>
		<!-- END SECTION -->
		<!-- BEGIN JS -->
		<?php $this->load->view('Public/footjs.html');?>
		<script src="<?php echo base_url('Public/js/pkadmin/personal.js');?>"></script>
		<!-- PKADMIN LOGIN JS -->
		<!-- END JS -->
	</body>

</html>